package com.zyf.mt.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class JdbcConnectionTest {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            //Class.forName("com.mysql.cj.jdbc.Driver");
            Connection conn= DriverManager.getConnection("jdbc:mysql://139.155.237.83:3306/mt","root","root");
            System.out.println(conn);
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
